RotateMatrix
TheRotateMatrix
function allows your application to modify the contents of a matrix so that it defines a rotation operation.
pascal void RotateMatrix (MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY);
m
- Contains a pointer to a matrix structure. The
RotateMatrix
function updates the contents of this matrix so that the matrix describes a rotation operation--that is, it concatenates the rotation transformations onto whatever was initially in the matrix structure. You specify the direction and amount of rotation with thedegrees
parameter. You specify the point of rotation with theaboutX
andaboutY
parameters.degrees
- Specifies the number of degrees of rotation.
aboutX
- Specifies the x coordinate of the anchor point of rotation.
aboutY
- Specifies the y coordinate of the anchor point of rotation.
ERROR CODES
None